package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 上电视表
 */
@Data
@TableName("app_user_tv")
@NoArgsConstructor
public class AppUserTv {

    public AppUserTv(Integer userId, Integer tvType){
        this.userId = userId;
        this.tvType = tvType;
        if (tvType == 1) {
            this.tvTypeName = "正常上电视";
        } else {
            this.tvTypeName = "匿名上电视";
        }
    }

    private Integer userId;//用户主键

    @TableField("tv_type")
    private Integer tvType;//电视类型

    @TableField("tv_type_name")
    private String tvTypeName;//电视类型名称

}
